local more1__wenmou = fk.CreateSkill{
  name = "more1__wenmou",
}
Fk:loadTranslationTable{
  ["more1__wenmou"] = "稳谋",
  [":more1__wenmou"] = "每轮限一次，当一名角色受到伤害时，你可以令其减少一点体力上限，然后防止此伤害。",
  
  ["#more1__wenmou"] = "稳谋：令 %dest 减少一点体力上限，然后防止此伤害",

  ["$more1__wenmou1"] = "",
  ["$more1__wenmou2"] = "",
}

more1__wenmou:addEffect(fk.DamageInflicted, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(more1__wenmou.name) and player:usedEffectTimes(more1__wenmou.name, Player.HistoryRound) == 0
  end,
  on_cost = function (self, event, target, player, data)
    return player.room:askToSkillInvoke(player, {
      skill_name = more1__wenmou.name,
      prompt = "#more1__wenmou::"..target.id,
    })
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:changeMaxHp(target, -1)
    data:preventDamage()
  end,

})



return more1__wenmou